#!/bin/bash

root=$(cd "$(dirname "$0")";pwd)

pid=`$root/sbin/getPidByExe $root/sbin/php-fpm`
if [[ $pid == "0" ]];then
	export LD_LIBRARY_PATH=$root/sbin/depends
	/$root/sbin/php-fpm
fi